﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace MapEditorMario
{
    class CTreeObject
    {
        int x1, y1, x2, y2;
        GameObject target;
        //Rectangle rect;
        //String id;

        int obj_id;
        int obj_type;

        public int X1
        {
            get { return x1; }
        }
        public int Y1
        {
            get { return y1; }
        }
        public int X2
        {
            get { return x2; }
        }
        public int Y2
        {
            get { return y2; }
        }
        //public String ID
        //{
        //    get { return id; }
        //}
        //public Rectangle Rect
        //{
        //    get { return rect; }
        //}
        public int ObjID
        {
            get { return obj_id; }
        }
        public int ObjType
        {
            get { return obj_type; }
        }

        public CTreeObject()
        {
            x1 = x2 = y1 = y2 = 0;
        }
        public CTreeObject(GameObject g_obj)
        {
            this.target = g_obj;
            this.x1 = target.X1;
            this.y1 = target.Y1;
            this.x2 = target.X2;
            this.y2 = target.Y2;
            //this.id = g_obj.Id;

            this.obj_id = g_obj.ObjID;
            this.obj_type = g_obj.ObjType;
        }
    }
}
